package com.origin.netlibrary.listener

import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type

open class Response<T> {


    fun getTClass(): Class<T> {
        return (javaClass.genericSuperclass as ParameterizedType).actualTypeArguments[0] as Class<T>
    }


    fun getType(): Type {
        return (javaClass.genericSuperclass as ParameterizedType).actualTypeArguments[0];
    }
}